/**
 * @projectName yygh_parent
 * @package com.atguigu.yygh.hosp.repository
 * @className com.atguigu.yygh.hosp.repository.HospitalRepository
 */
package com.atguigu.yygh.hosp.repository;

import com.atguigu.yygh.model.hosp.Hospital;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * HospitalRepository
 * @description
 * @author zyw
 * @date 2023/5/24 14:45
 * @version 1.0
 */
public interface HospitalRepository extends MongoRepository<Hospital, String> {

    Hospital getHospitalByHoscode(String hoscode);

    List<Hospital> findHospitalByHosnameLike(String hosname);

}
